package com.google.gwt.sample.contacts.server;

import com.google.gwt.sample.contacts.client.action.UpdateContactAction;
import com.google.gwt.sample.contacts.client.action.UpdateContactResponse;

import com.guit.client.command.action.CommandException;

public class UpdateContactHandler extends AbstractHandler<UpdateContactAction, UpdateContactResponse> {

    @Override
    public UpdateContactResponse handle(UpdateContactAction action) throws CommandException {
        return new UpdateContactResponse(dataUtil.updateContact(action.getContact()));
    }
}
